
from celery_tasks.main import celery_app
from django.core.mail import send_mail
from meiduo_mall.settings import dev

@celery_app.task
def celery_send_email(recipient_list : list, subject: str, html_message: str):
    send_mail(recipient_list=recipient_list,
              html_message=html_message,
              from_email=dev.EMAIL_HOST_USER,
              subject=subject,
              message=None
              )